package com.wonders.qxmanager.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Url entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
@Entity
@Table(name = "url")
public class Url implements java.io.Serializable {

	
	/** default constructor */
	public Url() {
	}
	
	
	// Fields
		
	@Id
	@GeneratedValue(generator = "SEQ_url")
	@GenericGenerator(name = "SEQ_url", strategy = "native", parameters = {
			@org.hibernate.annotations.Parameter(name = "sequence", value = "SEQ_url"),
			@org.hibernate.annotations.Parameter(name = "unsaved-value", value = "0") })
	/**
	 * Id
	 */
	@Column(name = "id")
	private Integer id;
	/**
	 * No
	 */
	@Column(name = "no")
	private Integer no;
	/**
	 * name
	 */
	@Column(name = "name")
	private String name;
	/**
	 * url
	 */
	@Column(name = "url")
	private String url;
	/**
	 * pid
	 */
	@Column(name = "pid")
	private Integer pid;

	// Constructors

	

	/** minimal constructor */
	public Url(Integer id) {
		this.id = id;
	}

	/** full constructor */
	public Url(Integer id, Integer no, String name, String url, Integer pid) {
		this.id = id;
		this.no = no;
		this.name = name;
		this.url = url;
		this.pid = pid;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getNo() {
		return this.no;
	}

	public void setNo(Integer no) {
		this.no = no;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

}